<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php
require_once dirname(__FILE__) . "/../PUB/class/tools/ServerFunction.class.php";
require_once dirname(__FILE__) . "/../PUB/class/db/DAB.class.php";
$NowPage=htmlentities($_SERVER['PHP_SELF']);
require_once dirname(__FILE__) . '/../PUB/CommonPage.inc.php';
require_once "Constant.class.php";

if(isset($_REQUEST["prgAction"])){
    $dab=new DAB("");

    $dab->connectDB($db_alias);

}

?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link type="text/css" rel="stylesheet" href="/PUB/general/workflow.css"/>

        <script type="text/javascript" language="javascript1.2" src="/PUB/general/jquery-1.4.4.min.js"></script>
        <script type="text/javascript" language="javascript1.2" src="/PUB/general/commscript.js"></script>
        <script type="text/javascript" language="javascript1.2" src="./general/mhd_add.js"></script>

        <title>報修登記系統</title>
    </head>
    <body onload="evt_page_load();">
        <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
            <TR>
                <TD style="background-image: url('/PUB/pub_images/title/title_bg.gif');" ><DIV ALIGN="LEFT"><IMG SRC="/PUB/pub_images/title/title01.gif" WIDTH="18" HEIGHT="24" HSPACE="0" alt=""/><IMG SRC="/PUB/pub_images/glass.gif" WIDTH="12" HEIGHT="8" alt=""/></DIV></TD>
                <TD ALIGN="LEFT" HEIGHT="20" VALIGN="MIDDLE" style="background-image: url('/PUB/pub_images/title/title_bg.gif');" CLASS="TITLE">報修登記</TD>
                <TD style="background-image: url('/PUB/pub_images/title/title_bg.gif');"><DIV ALIGN="RIGHT"><IMG SRC="/PUB/pub_images/glass.gif" WIDTH="12" HEIGHT="8" alt=""/><IMG SRC="/PUB/pub_images/title/title02.gif" WIDTH="18" HEIGHT="24" HSPACE="0" alt=""/></DIV></TD>
            </TR>
        </TABLE>
        <br/>
        <form method="post" action="<?=$NowPage ?>">
            <table id="btn_list">
                <tr>
                    <td><input type="button" value="存檔" class="button b_normal" onClick="javascript:evt_btn_save_onclick();"/></td>
                    <td><input type="button" value="取消" class="button b_normal" onClick="javascript:evt_btn_cancel_onclick();"/></td>
                </tr>
            </table>
            <table style="width: 70%">
                <tr>
                    <td nowrap CLASS="td_head" width="10%">登錄者</td>
                    <td CLASS="td_content" width="30%"><?php echo $_SESSION["empname"] ?></td>
                    <td nowrap CLASS="td_head" width="10%">處室名稱</td>
                    <td CLASS="td_content" width="50%"><?php echo $_SESSION["empdeptname"] ?></td>
                </tr>
                <tr>
                    <td nowrap CLASS="td_head">
                        <IMG src="/PUB/pub_images/star.gif" alt="">
                        損壞設備地點
                    </td>
                    <td CLASS="td_content">
                        <select name="device_place">
                            <option>校長室</option>
                            <option>祕書室</option>
                            <option>教務處</option>
                            <option>學務處</option>
                            <option>總務處</option>
                            <option>人事處</option>
                            <option>會計室</option>
                            <option>輔導室</option>
                            <option>圖書館</option>
                            <option>資源三樓</option>
                            <option>資源四樓</option>
                            <option>國文科教師室(C102)</option>
                            <option>國文商業科教師室(C103)</option>
                            <option>英文科教師室(C104)</option>
                            <option>社會科教師室(D102)</option>
                            <option>數學科教師室(D103)</option>
                            <option>數學科教師室(D104)</option>
                            <option>自然科教師室(E303)</option>
                            <option>國文專科教室(E403)</option>
                            <option>數學專科教室(D104)</option>
                            <option>社會專科教室(E404)</option>
                            <option>物理專科教室(E201,E202)</option>
                            <option>生物專科教室(E301,E302)</option>
                            <option>化學專科教室(E401,E402)</option>
                            <option>地科專科教室(E501,E502)</option>
                            <option>美術專科教室</option>
                            <option>音樂專科教室</option>
                            <option>合作社</option>
                            <option>教職員工餐廳</option>
                            <option>傳達室</option>
                            <option>教師會辦公室</option>
                            <option>五樓會議室</option>
                            <option>六樓會議室</option>
                            <option>四樓研習教室</option>
                            <option>三樓庫房</option>
                            <option>三樓(教)印刷室</option>
                            <option>國際會議廳</option>
                            <option>書香亭</option>
                            <option>活動中心</option>
                            <option>體育組</option>
                            <option>學生宿舍</option>
                            <option>電腦教室一</option>
                            <option>電腦教室二</option>
                            <option>電腦教室三</option>
                            <option>電腦教室四</option>
                            <option>語言教室一</option>
                            <option>語言教室二</option>
                            <option>語言教室三</option>
                            <option>語言教室四</option>
                            <option>中餐教室</option>
                            <option>西餐教室</option>
                            <option>烘焙教室</option>
                            <option>調酒教室</option>
                            <option>禮儀教室</option>
                        </select>
                    </td>
                    <td nowrap CLASS="td_head">
                        <IMG src="/PUB/pub_images/star.gif" alt="">設備類別
                    </td>
                    <td CLASS="td_content">
                        <select name="device_kind">
                            <option value="G">總務設備</option>
                            <option value="P">電腦設備</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td nowrap CLASS="td_head">
                        <IMG src="/PUB/pub_images/star.gif" alt="">問題分類</td>
                    <td CLASS="td_content" colspan="3">
                        <select name="device_fault_kind">
                            <option value="P01">無法開機</option>
                            <option value="P02">無法上網</option>
                            <option value="G01">椅子損壞</option>
                            <option value="G02">門窗損壞</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td nowrap CLASS="td_head">
                <IMG src="/PUB/pub_images/star.gif" alt="">問題簡述</td>
                    <td CLASS="td_content" colspan="3">
                        <input type="text" id="deeds_desc" name="deeds_desc" size="100" />
                    </td>
                </tr>
                <tr>
                    <td nowrap CLASS="td_head">問題詳述</td>
                    <td CLASS="td_content" colspan="3">
                        <textarea rows="10"  id="comp_notes" name="deeds_notes" cols="140"></textarea>
                    </td>
                </tr>
            </table>
            <input type="hidden" name="prgAction" id="prgAction"/>
        </form>
    </body>
</html>